﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls.WebParts;
using WebSiteBuilder.CatalogParts;
using System.Security.Permissions;

namespace WebSiteBuilder
{
    [AspNetHostingPermission(SecurityAction.Demand, Level = AspNetHostingPermissionLevel.Minimal)]
    [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
    public class GalleryCatalogZone : CatalogZoneBase
    {
        public GalleryCatalogZone()
        {
            this.HeaderText = "Widget Gallery";
            this.HeaderCloseVerb.Text = "Close Catalog";
            this.CloseVerb.Text = "Close Catalog";
        }

        protected override CatalogPartCollection CreateCatalogParts()
        {
            var part = new TextBoxCatalogPart();

            return new CatalogPartCollection(new List<CatalogPart> { part });
        }
    }
}